package com.firstwave.sfspringboot.web;

import com.firstwave.sfspringboot.entity.SysUserVO;
import com.firstwave.sfspringboot.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: shafei
 * @Date: 2020-05-20 10:08
 * @Version: V1.0
 * @Description:
 */
@RestController
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;

    @RequestMapping("/userlist")
    public List<SysUserVO> list(){
        List<SysUserVO> list = sysUserService.list();
        System.out.println(list.toString());
        return list;
    }
}
